#include "Stone.h"

#include "../../Components/Weapon.h"

Stone::Stone(Stone::Type stone_type, unsigned int weight) 
	: Item("stone", ""), stone_type(stone_type)
{
	switch(stone_type)
	{
	case GREY_STONE:
		{
			description = "The stone has an uneven shape. It's color is grey.";
		} break;
	case WHITE_STONE:
		{
			description = "The stone has an uneven shape. It's color is white.";
		} break;
	case BLACK_STONE:
		{
			description = "The stone has an uneven shape. It's color is black.";
		} break;
	case BROWN_STONE:
		{
			description = "The stone has an uneven shape. It's color is brown.";
		} break;
	default:
		{
			description = "The stone has an uneven shape. It's color is mixed.";
		} break;
	};

	this->weight = weight; //1 kg heavy stone

	auto weapon = GameObject::add<Weapon>(std::make_shared<Weapon>());
	weapon->setBluntDmg(2,1);
	weapon->setCutDmg(0, 0);
	weapon->setStabDmg(0, 0);
}

Stone::~Stone()
{
}
